home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Compression / Opener / Source / Submit < prev    next >
Text File  |  1993-07-15  |  882b  |  31 lines

  1. #! /bin/csh -f
  2. if (-e $1/README) then
  3.     cp $1/README /tmp/$1.README
  4. else
  5.     echo That failed\!  You MUST create $1/README\!
  6.     exit
  7. endif
  8.  
  9. tar cf - $1 | compress > /tmp/$1.tar.Z
  10.  
  11. if (-e ~/Apps/submit) then
  12.     set s = ~/Apps/submit
  13. else if (-e /LocalApps/submit) then
  14.     set s = ~/LocalApps/submit
  15. else if (-e ~/Apps/Opener.app/submit) then
  16.     set s = ~/Apps/Opener.app/submit
  17. else if (-e /LocalApps/Opener.app/submit) then
  18.     set s = /LocalApps/Opener.app/submit
  19. endif
  20. cd /tmp
  21. set t = submission$$
  22. echo "Here is the transcript of the ftp job." > $t
  23. echo "=========================" >> $t
  24. $s $1.README $1.tar.Z >> $t
  25. echo "=========================" >> $t
  26. echo "Here is your README file:" >> $t
  27. cat $1.README >> $t
  28. cat $t | open
  29. echo "$1 has been submitted to the NeXT archives.  If the transcript looks okay, it should be safe to send the message."
  30. rm $t $1.README $1.tar.Z
  31.